<template>
	<view class="e-p-l-40 e-p-r-40 e-p-t-60 bg-white detail-container" v-if="detail">
		<view class="e-m-b-20">
			<text class="e-font-40 f-33">{{detail.title}}</text>
		</view>
		<view class="e-m-b-60">
			<text class="e-font-26 f-a7">{{$timeFormat(detail.createTime,'yyyy-mm-dd hh:MM:ss')}}</text>
		</view>
		<rich-text :nodes="detail.content"></rich-text>
	</view>
</template>

<script>
	import {getMessageDetail} from '@/common/request/api'
	export default {
		data() {
			return {
				detail:null
			}
		},
		onLoad(opt) {
			getMessageDetail(opt.id).then(res => {
				if (res.code == 200) {
					this.detail = res.data
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style>
	.f-33 {
		color: #333333;
	}
	.f-a7 {
		color: #A7AAB3;
	}
	.detail-container {
		min-height: 100vh;
	}
</style>
